local qiaoge = fk.CreateSkill{
  name = "plum__qiaoge_active",
}

Fk:loadTranslationTable{ [qiaoge.name] = "鞘歌" }

qiaoge:addEffect("active", {
  card_num = 1,
  min_target_num = 0,
  max_target_num = 0,
  card_filter = Util.TrueFunc,
  target_filter = function (self, player, to_select, selected, selected_cards)
    if #selected_cards == 1 and Fk:getCardById(selected_cards[1]).is_damage_card then
      return #selected == 0 and to_select ~= player
    end
  end,
  feasible = function (self, player, selected, selected_cards)
    if #selected_cards == 1 then
      local card = Fk:getCardById(selected_cards[1])
      if card.is_damage_card then
        return #selected == 1
      else
        return #selected == 0
      end
    end
  end
})

return qiaoge